var SEditor = {
	obj : null,
	sx : 0, sh : 0,
	sy : 0, sw : 0,
	clearpx : function (stro){
		str=""+stro+"";
		return (str.replace("px",""))*1;
	},
	rsize : function (e){
		try{
			SEditor.obj.style.height=SEditor.clearpx(e.clientY)-SEditor.sy;
			SEditor.obj.style.width=SEditor.clearpx(e.clientX)-SEditor.sx;
			eventh.del(document,"click",SEditor.stop);		
			eventh.handle(document,"click",SEditor.stop);
			document.window.focus();
		}catch(e){errors.record(e,"SEditor.rsize->func()");}
	},
	stop : function (e){
		eventh.del(document,"mousemove",SEditor.rsize);
		eventh.del(document,"click",SEditor.stop);
		TimeShow.RPos(SEditor.obj);
		document.body.style.cursor="";
	},
	start : function (thediv){
		this.sx=this.clearpx(thediv.style.left);
		this.sy=this.clearpx(thediv.style.top);
		this.obj = thediv;
		document.body.style.cursor="se-resize";
		eventh.handle(document,"mousemove",SEditor.rsize);
	}
}